-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.java
33 lines (26 loc) · 787 Bytes
/
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int n, x;
n = sc.nextInt();
for (int i = 0; i < n; i++) {
x = sc.nextInt();
if (x == 0)
System.out.println("NULL");
if (x < 0) {
if (x % 2 == 0)
System.out.println("EVEN NEGATIVE");
else
System.out.println("ODD NEGATIVE");
}
if (x > 0) {
if (x % 2 == 0)
System.out.println("EVEN POSITIVE");
else
System.out.println("ODD POSITIVE");
}
}
sc.close();
}
}